﻿<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <script type="text/javascript" src="cicy/cicylib-all-debug.js"></script>
  <link rel="stylesheet" href="cicy/default/global.css" type="text/css"/>
  <link rel="stylesheet" href="cicy/default/ru_share.css" type="text/css"/>
</head>
<body>
</body>
</html>
<script>
CC.ready(function(){
__debug=true;
 var win = new CC.ui.Win({
  title : '选项卡Ajax加载',
  destoryOnClose : true,
  layout : 'row',
  showTo:document.body,
  items:[
    {
      ctype:'tab',   
      id:'mytab', 
      selectionProvider:{selected:0}, 
      contentPanel:'tabcontentpanel', 
      lyInf:{h:'auto'}, 
      array:[{
        title:'选项_1',
        panel:{
            ctype:'panel',
            connectionProvider : {ajaxCfg:{url : 'page.json'}}
        }
      },{
        title:'选项_2',
        panel:{
            ctype:'panel',
            connectionProvider : {ajaxCfg:{url : 'data.json'}}
        }
      }]
    },
    {ctype:'panel', id:'tabcontentpanel', lyInf:{h:'lead'}, layout:'card'}
  ]
 });
 win.render();
 win.center();
 
});
</script>